home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Examples / EnterpriseObjects / Validation / English.lproj / Validation.nib / data.nib (.txt) < prev   
Encoding:
NeXT TypedStream Data  |  1995-02-17  |  5.1 KB  |  115 lines

  1. typedstream
  2. IBObjectData
  3. Object
  4. CustomObject
  5. Application
  6. NXTableVector
  7. iiff*@@@
  8.     firstName
  9. Helvetica-Bold
  10. NXTextFormatter
  11. NXFormatter
  12.     Helvetica
  13. NXTableView
  14. ScrollView
  15.     Responder
  16. Matrix
  17. Control
  18. @:@iiii
  19. ButtonCell
  20. ActionCell
  21. Fetch
  22. ff@@#::s
  23. FormCell
  24. city:
  25. address:
  26. Field:
  27. salary:
  28. Button
  29. Validate changes immediately
  30. NXImage
  31. NXswitch
  32.     NXswitchH
  33. ClipView
  34. _NXGridView
  35. i@@@@@
  36.     _NXLayout
  37. @@ffcii
  38. lastName
  39. departmentName
  40. _NXHeadingView
  41. _NXHeadingCell
  42. TextFieldCell
  43. Scroller
  44. _doScroller:
  45. @@@ffs
  46. i@@@@@::
  47. NXCursor
  48. NXibeam
  49. ciifffcfffs
  50. [1336c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  51. \margl40
  52. \margr40
  53. {\colortbl;\red0\green0\blue0;}
  54. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b\i0\ulnone\fs28\fc1\cf1 Running the Example
  55. \b0\fs24\fc0\cf0 \
  56. Try making changes to the city, address, and salary fields in the application.  If "validate changes immediately" is checked certain constraints will be checked as soon as you try to leave a field.  All constraints are checked before saving to the data source.\
  57. \b Validation Rules:
  58. \b0 \
  59. The employee class in this example encodes the following constraints:\
  60. \pard\tx980\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-220\li960\fc0\cf0 
  61.     Salaries must be greater than $1000\
  62.     A city must be entered (non-blank)\
  63.     Addresses may not be longer than 40 characters\
  64. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0\cf0 Also, employees pass themselves on to their departments for department-specific validation.  This check is performed only when the object is about to be inserted of updated in the data source.  In this case department adds the constraint:\
  65. \pard\tx980\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-220\li960\fc0\cf0 
  66.     No employee may make more than ten times as much as anyone else in the department.\
  67. MenuCell
  68. MenuTemplate
  69. *@*@ccc
  70. Validation
  71. Info...
  72. Paste
  73. Select All
  74. submenuAction:
  75. NXmenuArrow
  76. WindowTemplate
  77. iiii***@s@
  78. Running the Example
  79. Panel
  80. _EODatabaseControllerTemplate
  81. _EOControllerTemplate
  82. (_EODatabaseForDatabaseControllerTemplate
  83. _EODBDSTemplate
  84. i*****
  85. People
  86. Employee
  87. NoModelPropertyList
  88. Validation Test
  89. Window
  90. AppController
  91. MainMenu
  92. EmployeeDatabase
  93. File's Owner
  94. MyWindow
  95. [20@]
  96. IBControlConnector
  97. IBConnector
  98. hide:
  99. terminate:
  100. copy:
  101. paste:
  102. selectAll:
  103. fetch:
  104. EOAssociationConnector
  105. @@*@&
  106. address
  107. salary
  108. IBOutletConnector
  109. dataSource
  110. delegate
  111. validatesOnChange:
  112. controller
  113. saveChanges:
  114. makeKeyAndOrderFront:
  115.